package com.mobile.weather.client;

import com.mobile.weather.domain.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name="CITY-LIST-CLIENT",fallback = CityListClientImpl.class)
public interface CityListClient {

    @RequestMapping("/cityList")
    public List<City> cityList();
}
